﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _24.Exercise
{
    class Program
    {
        static void Main(string[] args)
        {
            string text = Console.ReadLine();            
            List<string> words = text.Split(' ').ToList();
            words.Sort();
            foreach (string item in words)
            {
                Console.WriteLine(item);
            }
        }
    }
}
